package lab2;

import java.util.Scanner;

public class Triangle {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int a[][] = new int[n][2*n];
		a[0][n-1]=1;
		a[1][n-1]=2;
		a[1][n-3]=1;
		a[1][n+1]=1;
		for (int i = 2; i < n; i++){
			a[i][n-1-i]=1;
			a[i][n+1-i]=1;
			for (int j = n+1-i; j <= n-3+i; j+=2)
			{	
				a[i][j]=a[i-1][j-1]+a[i-1][j+1];
			}
		}
		for (int i = 0; i < n; i ++)
		{
			for (int j=0; j<2*n-1; j++)
			{
				if (a[i][j]==0) System.out.print("  ");
				else System.out.print(String.format("%02d", a[i][j]));
			}
			System.out.println();
		}
		
	}

}
